﻿using Logistics.Setup;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace Logistics.Operators
{
    //操作员管理
    public interface IOperatorsAppService : IApplicationService
    {
        //显示
        Task<PagedResultDto<OperatorDto>> GetOperatorAsync(GetOperatorsListDto dto);
        //删除
        Task DeleteAsync(int id);
        //批量删除
        int DeletePdeleteAsync(string ids);
        //添加
        Task<OperatorDto> CreateAddAsync(CreateOperatorsDto input);
        /// <summary>
        /// 反填
        /// </summary>
        Task<OperatorDto> GetAsync(int id);
        //修改
        Task UpdateAsync(int id, CreateOperatorsDto input);

        //员工下拉框
        List<YuanGong>GetYuanGongs();

        //角色下拉框
        List<RoleDto> GetRoleslx();
        //获取角色
        List<RoleDto> GetJurisdictions();


        int PostRolePower(int id, string ids);
        //分配角色

        List<OperatorLinkRoleDto> GetRolePower(int id);
    }
}
